package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class DynamicResultSetsCharacteristic implements AlterRoutineCharacteristic, RoutineCharacteristic {

    private int beginIndex;
    private int endIndex;
    private UnsignedInteger maximumDynamicResultSets;

    public DynamicResultSetsCharacteristic(int beginIndex,
                                           UnsignedInteger maximumDynamicResultSets) {
        this.beginIndex = beginIndex;
        this.endIndex = maximumDynamicResultSets.getEndIndex();
        this.maximumDynamicResultSets = maximumDynamicResultSets;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public UnsignedInteger getMaximumDynamicResultSets() {
        return maximumDynamicResultSets;
    }

}
